package com.kedou.sdk.params.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2018/2/1 0001.
 */

public class PayChannelInfo implements Parcelable {

    /**
     * 支付折扣比例
     */
    @SerializedName("discount")
    private float discount;
    @SerializedName("discount_text")
    private String discountText;
    @SerializedName("ptb_money")
    private float ptbMoney;

    /**
     * 支付渠道列表
     */
    @SerializedName("pay_list")
    private List<PayChannel> payChannel;
    /**
     * 支付渠道列表
     */
    @SerializedName("voucherList")
    private ArrayList<VoucherModel> voucherList;





    public float getDiscount() {
        return discount;
    }

    public void setDiscount(float discount) {
        this.discount = discount;
    }



    public List<PayChannel> getPayChannel() {
        return payChannel;
    }

    public void setPayChannel(List<PayChannel> payChannel) {
        this.payChannel = payChannel;
    }

    public float getPtbMoney() {
        return ptbMoney;
    }

    public String getDiscountText() {
        return discountText;
    }

    public void setDiscountText(String discountText) {
        this.discountText = discountText;
    }

    public void setPtbMoney(float ptbMoney) {
        this.ptbMoney = ptbMoney;
    }

    public ArrayList<VoucherModel> getVoucherList() {
        return voucherList;
    }

    public void setVoucherList(ArrayList<VoucherModel> voucherList) {
        this.voucherList = voucherList;
    }

    public PayChannelInfo() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeFloat(this.discount);
        dest.writeFloat(this.ptbMoney);
        dest.writeTypedList(this.payChannel);
        dest.writeTypedList(this.voucherList);
        dest.writeString(this.discountText);

    }

    protected PayChannelInfo(Parcel in) {
        this.discount = in.readFloat();
        this.ptbMoney = in.readFloat();
        this.payChannel = in.createTypedArrayList(PayChannel.CREATOR);
        this.voucherList = in.createTypedArrayList(VoucherModel.CREATOR);
        this.discountText = in.readString();

    }

    public static final Creator<PayChannelInfo> CREATOR = new Creator<PayChannelInfo>() {
        @Override
        public PayChannelInfo createFromParcel(Parcel source) {
            return new PayChannelInfo(source);
        }

        @Override
        public PayChannelInfo[] newArray(int size) {
            return new PayChannelInfo[size];
        }
    };
}

